<body style="min-width:500px;">
    <? $this->load->helper('url'); ?>
    <div id="wrap">
        <div class="container">
            <div class="navbar-default navbar-fixed-top">
                <div class="container">
                    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                        <span class="icon-bar"></span>
                    </button>
                    <div class="navbar-header">
                        <strong><a href="<? echo base_url(); ?>" class="navbar-brand"> <span class="glyphicon glyphicon-book"></span>  READING LABORATORY</a></strong>
                    </div>
                    <div class="collapse navbar-collapse">
                        <div style="float:right;"><p class="navbar-text">Signed in as root &nbsp; <a class="btn btn-xs btn-danger">LOGOUT</a></p></div>
                    </div>
                </div>
            </div>

            <div style="padding:100px 0px 0px 0px;">
                <?php $test= validation_errors(); ?>
                <div class='col-md-12 text-center'>
                    <? if (!empty($test)) { ?>
                    <div class="alert alert-danger alert-dismissable">
                        <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
                         <?php echo validation_errors(); ?>
                    </div>
                <? } ?>
                <form class="form-horizontal" role="form" method="post" action="#">
                    <div class="form-group">
                        <label class="col-sm-2 col-sm-offset-2 control-label">Username:</label>
                        <div class="col-sm-5">
                            <input onkeydown="return alphaValidator(event);" type="text" name="user" class="form-control" placeholder="Username" value="<? echo $moderator_profile['username'] ?>" disabled/>
                        </div>
                    </div>
                 <div class="form-group">
                        <label class="col-sm-2 col-sm-offset-2 control-label">First Name:</label>
                        <div class="col-sm-5">
                            <input onkeydown="return alphaValidator(event);" type="text" name="firstname" class="form-control" value="<?if(empty($test)){echo $moderator_profile['firstname'];}else{echo set_value('firstname');}; ?>"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 col-sm-offset-2 control-label">Middle Name:</label>
                        <div class="col-sm-5">
                            <input  onkeydown="return alphaValidator(event);" type="text" name="middlename" class="form-control" value="<? if(empty($test)){echo $moderator_profile['middlename'];}else{echo set_value('middlename');};?>" />
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 col-sm-offset-2 control-label">Last Name:</label>
                        <div class="col-sm-5">
                            <input onkeydown="return alphaValidator(event);" type="text" name="lastname" class="form-control" value="<?if(empty($test)){echo $moderator_profile['lastname'];}else{echo set_value('lastname');};?>"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-5 col-sm-offset-4">
                            <input  type="submit" name="update" value="Update" class="btn  btn-warning">
                             <a href="<? echo $cancel_link ?>" class="btn btn-danger">Cancel</a>
                        </div>
                    </div>
            </form></div>
            </div>
        </div>
    </div>
    <div id="footer">
        <div class="container" >
            <p class="text-center" style="color:white;margin:19px;">My Reading Laboratory. Copyright <?echo date("Y");?> © </p>
        </div>
    </div>
